var schedule = require('node-schedule');
var {
  StoreNedb
} = require("./businessNedb");

exports.scheduleOrderlistNedb = function() {
  var j = schedule.scheduleJob({
    hour: 23,
    minute: 59
  }, function() {
    console.log('Time for tea!');
    StoreNedb.resetStoreSerialNo().then(v => {}).catch(err => {
      console.log(err)
    });
  });


}
